import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from '@/http/axios.js'
import 'vant/lib/index.css'//导入vant样式
import '@/assets/font/iconfont.css' //导入字体图标样式

Vue.filter('dateFormat', function(originVal) {

  const dt = new Date(originVal)

  const hh = (dt.getHours() + '').padStart(2, '0')

  const mm = (dt.getMinutes() + '').padStart(2, '0')

  const ss = (dt.getSeconds() + '').padStart(2, '0')
  return ` ${hh}-${mm}-${ss}`})
Vue.config.productionTip = false

Vue.prototype.$http = axios


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
